package com.ztjc.day04_smartimageview;

import android.app.Activity;
import android.os.Bundle;

import com.loopj.android.image.SmartImageView;

/**
 * 智能网络图片查看器
 */
public class MainActivity extends Activity {

    private SmartImageView siv_image;
    private String path = "http://girlatlas.b0.upaiyun.com/3215/20140626/152675cd67ca0f54ecb5.jpg!mid";

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main);

        siv_image = (SmartImageView) findViewById(R.id.siv_image);

        siv_image.setImageUrl(path);
    }

}
